﻿using System;
using GalaSoft.MvvmLight;
using TestApp.Messages;

namespace TestApp.ViewModel.PagesViewModels
{
    public class WebBrowserViewModel : ViewModelBase
    {
        // URL
        public Uri WebBrowserSource
        {
            get;
            set;
        }

        // Coupon Receiver
        MessageReceiver<UriInitMessage> UriReceiver;

        // Constructor
        public WebBrowserViewModel()
        {
            UriReceiver = new MessageReceiver<UriInitMessage>((message) =>
            {
                WebBrowserSource = message.Value;
            }, true);
        }
    }
}
